#include "CHitBox.h"
using namespace Content;
CHitBox::CHitBox(const float in_a, const float in_b, const float in_c)
{
  a = in_a;
  b = in_b;
  c = in_c;
  pObject = createRectangle(a,b,c);
  pEntity = createEntity(0.0f,0.0f,0.0f);
  pEntity->createBoundingBox(a,b,c);
}

CHitBox::~CHitBox()
{
}

void CHitBox::setColor(const int r, const int g, const int b)
{
  if (pObject)
  {
    ((IPrimitive*)pObject)->setColor(r,g,b);
  }
}
void CHitBox::getColor(int& r, int& g, int& b)
{
  r = 0;
  g = 0;
  b = 0;
  if (pObject)
  {
    ((IPrimitive*)pObject)->getColor(r,g,b);
  }

}
